package com.hliushi.learn.dao;

import com.hliushi.learn.bean.Reader;
import com.hliushi.learn.bean.ReaderBookLendWide;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName ReaderDao
 * @Description TODO
 * @Author hliushi
 * @Date 2021/7/7 14:36
 * @Version V1.0
 **/
@Mapper
@Repository
public interface ReaderDao {

    Reader getReaderById(Integer readerId);

    List<Reader> getReaderAll();

    void insertReader(Reader reader);

    void updateReader(Reader reader);

    void deleteReader(Integer readerId);

    List<ReaderBookLendWide> selectReaderJoinBookLend();
}
